import axios from '@/utils/http.js'

// 获取用户列表
export const getUserListAPI = (params) => axios.get('/admin/user', { params })

// 添加用户
export const addUserAPI = (data) => axios.post('/admin/user', data)

// 修改用户信息
export const updateUserAPI = (data) => axios.patch('/admin/user', data)

// 修改用户密码
export const updatePasswordAPI = (data) => axios.patch('/admin/user/password', data)

// 删除用户
export const deleteUserAPI = (ids) => axios.delete('/admin/user', { data: { ids } })
